package com.jdrx.sw.sewage.dao;

import com.jdrx.sw.sewage.beans.dto.ProcessSetTO;
import com.jdrx.sw.sewage.beans.dto.StationIdDTO;
import com.jdrx.sw.sewage.beans.entity.ProcessunitPO;
import com.jdrx.sw.sewage.beans.vo.DeMaPuVO;
import com.jdrx.sw.sewage.beans.vo.ProcessunitFPVO;
import com.jdrx.sw.sewage.beans.vo.ProcessunitVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 站点的工艺单元DAO（sewage_station_processunit）
 * Created by generator on 2020-10-12.
 */
@Mapper
public interface ProcessunitDAO {
    int insert(ProcessunitPO record);

    int insertSelective(ProcessunitPO record);

    List<ProcessunitVO> selectByStationId(@Param("stationId") Long stationId);

    List<String> selectNameList(@Param("stationId") Long stationId);

    DeMaPuVO selectByStationIdAndDeviceName(@Param("stationId") Long stationId,
                                            @Param("deviceName") String deviceName,
                                            @Param("pName") String pName);

    ProcessunitPO selectBySIdAndV(@Param("stationId") Long stationId,
                                  @Param("value") String value,
                                  @Param("factoryPeriod") String factoryPeriod);

    List<ProcessunitVO> selectByAll();

    Long selectNextId();

    List<ProcessunitFPVO> findProcUByStationId(StationIdDTO dto);

    void stationProcessSet(ProcessSetTO dto);

    Object findProcessSet(@Param("processId") Long processId);
}